﻿using Model.BusinessModel.OutPut;
using Model.BusinessModel.OutPut.sys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Utility;

namespace DomainService.IService.Sys
{
    /// <summary>
    /// 菜单服务接口
    /// </summary>
    public interface ISysMenuService
    {
        /// <summary>
        /// 获取OverallAuth系统树形菜单
        /// </summary>
        /// <returns></returns>
        List<SysMenuOutPut> GetMenuTreeList();

        /// <summary>
        /// 获取菜单列表
        /// </summary>
        /// <returns></returns>
        List<SysMenuOutPut> GetAllMenuTreeList();

        /// <summary>
        /// 获取公司下系统的菜单
        /// </summary>
        /// <param name="corporationKey">公司key</param>
        /// <param name="systemKey">系统key</param>
        /// <returns></returns>
        ReceiveStatus<TreeOutPut> GetCorporationSystemMenuList(string corporationKey, string systemKey);

        /// <summary>
        /// 获取用户所属菜单
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <param name="corporationKey">公司key</param>
        /// <param name="systemKey">系统key</param>
        /// <returns>返回用户所属菜单</returns>
        ReceiveStatus<SysMenuOutPut> GetMenuByUserId(string userId, string corporationKey,string systemKey);

        /// <summary>
        /// 获取公司、系统、菜单关系数据
        /// </summary>
        /// <param name="corporationKey">公司key</param>
        /// <returns></returns>
        ReceiveStatus<TreeOutPut> GetAllMenuList(string corporationKey);
    }
}
